<div class="admin">
<div class="tab panel dux-box admin-panel">
    <div class="panel-head"><strong>商品列表</strong></div>
    <div class="padding border-bottom">
        <a class="button button-small border-green">管理</a>
        <a  href="{:U('add')}" class="button button-small border-green">新增</a>
    </div>
    <div class="fixed-empty"></div>
    <form method='post' id="myform">
        <input type="hidden" name="form_submit" value="ok"/>
        <input type="hidden" name="submit_type" id="submit_type" value=""/>
        <table class="table tb-type2">
            <thead>
            <tr class="thead">
                <th width="5%">排序</th>
                <th width="*">分类名称</th>
                <th width="10%">操作</th>
            </tr>
            </thead>
            <tbody>
            <volist name="arr" id="v">
                <tr>
                    <td>{$v['sort_order']}</td>
                    <td>
                        <a href="{:U('Category/index',array('cat_id'=>$v['cat_id']))}">{$v["cat_name"]}&nbsp;({$v['count']})</span>
                    </td>
                    <td>
                        <a class="button bg-blue button-little" href="{:U('save',array('cat_id'=>$v['cat_id']))}"><i class="icon-edit"></i>编辑</a>
                        <a class="button bg-red button-little js-del" title="删除" data="{$v['cat_id']}"><em><i class="icon-minus-circle"></i>删除</em></a>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </form>
</div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        actionUrl: "batchAction",
        deleteUrl: "{:U('del')}",
    });
</script>


